.app-container{
  height: 100vh;
  .title{
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    position: relative;
    .use-description{
      position: absolute;
      top: 10px;
      left: 20px;
      font-size: 14px;
      font-weight: 400;
      .crud-code-text{
        color: #126ac6;
        cursor: pointer;
        margin-left: 15px;
      }
    }
    .code-btn{
      position: absolute;
      top: 10px;
      right: 20px;
      button{
        margin-right: 10px;
      }
    }
  }
  .wrapper-content{
    display: flex;
    height: calc(100% - 53px);
    .left-wrapper{
      width: 320px;
      padding: 10px;
      .component-list{
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        .component-item{
          width: 48%;
          padding: 10px;
          border: 1px dashed #ccc;
          margin-right: 5px;
          margin-bottom: 10px;
          text-align: center;
          border-radius: 5px;
          cursor: pointer;
          &:hover{
            border-color: #126ac6;
            color: #126ac6;
          }
        }
      }
    }
    .center-wrapper{
      flex: 1;
      border-left: 1px solid #ccc;
      border-right: 1px solid #ccc;
      padding: 10px;
      overflow-y: auto;
      .widget-list{
        .widget-item{
          position: relative;
          margin-bottom: 10px;
          padding: 15px;
          &.widget-active {
            border: 1px dashed #126ac6;
          }
          .copy-remove-icon-out{
            display: none;
            position: absolute;
            top: 0;
            right: 5px;
            z-index: 999;
            font-size: 18px;
            .copy-icon{
              cursor: pointer;
              &:hover{
                color: #f40;
              }
            }
            .remove-icon{
              cursor: pointer;
              margin-left: 20px;
              &:hover{
                color: #f40;
              }
            }
          }
          &:hover{
            .copy-remove-icon-out{
              display: block;
            }
          }
          .widget-row{
            padding: 25px;
            border: 1px dashed #f40;
            margin-bottom: 10px;
            position: relative;
            &:hover{
              .copy-remove-icon{
                display: block;
              }
            }
            .child-item{
              position: relative;
              padding: 15px;
              &.child-active{
                border: 1px dashed #126ac6;
              }
            }
            .copy-remove-icon{
              display: none;
              position: absolute;
              top: 0;
              right: 5px;
              z-index: 998;
              font-size: 18px;
              .copy-icon{
                cursor: pointer;
                &:hover{
                  color: #126ac6;
                }
              }
              .remove-icon{
                cursor: pointer;
                margin-left: 20px;
                &:hover{
                  color: #126ac6;
                }
              }
            }
          }
          .chart-box{
            .chart-comp{
              height: 300px;
            }
          }
        }
      }
    }
    .right-wrapper{
      width: 320px;
      padding: 10px;
      overflow-y: auto;
      .form-item{
        margin-bottom: 10px;
        .option-list{
          display: flex;
          flex-wrap: wrap;
          .option-item{
            padding: 5px;
            border: 1px solid #ccc;
            cursor: pointer;
            margin-right: 10px;
            margin-bottom: 10px;
            position: relative;
            &:hover{
              .icon-remove{
                display: block;
              }
            }
          }
          .icon-remove{
            position: absolute;
            top: -8px;
            right: -8px;
            color: #f40;
            display: none;
          }
        }
        .icon-plus{
          cursor: pointer;
          &:hover{
            color: #126ac6;
          }
        }
        .form-item-row{
          display: flex;
          justify-content: space-between;
          align-items: center;
        }
      }
      .title-type{
        font-weight: 700;
        padding: 10px 0;
        font-size: 22px;
      }
      .collapse-content{
        max-height: 400px;
        overflow-y: auto;
      }
    }
  }
  .content-area{
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  .spin{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
  }
}
.tab-list{
  display: flex;
  justify-content: flex-start;
  position: relative;
  .tab-item{
    padding: 10px 20px;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    &.active{
      background: #126ac6;
      color: #fff;
      border-color: #126ac6;
    }
  }
  .copy-code{
    position: absolute;
    top: 0;
    right: 0;
    button{
      margin-right: 10px;
    }
  }
}
.tab-content{
  height: 380px;
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 10px;
  overflow-y: auto;
  .code-area{
    width: 100%;
    height: 100%;
    resize: none;
    line-height: 26px;
    white-space: pre-wrap;
  }
}
.storage-code{
  padding: 10px;
  border: 1px solid #ccc;
  line-height: 26px;
  white-space: pre-wrap;
}
.delete-op{
  color: #f40;
  cursor: pointer;
}
.add-row{
  margin-top: 10px;
  padding: 15px;
  cursor: pointer;
  border: 1px dashed #126ac6;
  text-align: center;
  color: #126ac6;
}
.tip{
  color: #f40;
  font-size: 16px;
  font-weight: 400;
}
.copy-text{
  color: #126ac6;
  cursor: pointer;
}

.search-top-title{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  .search-item{
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    .label-name{
      white-space: nowrap;
    }
    .control-item{
      margin-right: 10px;
      nz-select, input{
        width: 180px;
      }
    }
  }
  .left-box{
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    .table-top-btn{
      button{
        margin-right: 10px;
      }
    }
  }
  .right-box{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    white-space: nowrap;
    .table-top-btn{
      button{
        margin-right: 10px;
        &:last-child{
          margin-right: 0;
        }
      }
    }
  }
}
.type-item{
  display: flex;
  align-items: center;
  .abbr-img{
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }
}

